<div class="span-19">
    <div id="content">
		
<h1>Update User</h1>


<div class="form">

    <form id="user-form" action="<?php echo base_url('user/update/'.$id); ?>" method="post">
    <p class="note">Fields with <span class="required">*</span> are required.</p>

    
    <div class="row">
        <label for="User_name" class="required">Name <span class="required">*</span></label>        <input size="50" maxlength="50" name="User[name]" id="User_name" type="text" value="<?php echo $name; ?>">            </div>

    <div class="row">
        <label for="User_gender" class="required">Gender <span class="required">*</span></label>       
        <select name="User[gender]" id="User_gender">
        <?php
        echo $gender;
            switch($gender) {
                case 'M':
                    echo '<option value="M" selected="selected">Male</option>';
                    echo '<option value="F">Female</option>';
                break;
                case 'F':
                    echo '<option value="M">Male</option>';
                    echo '<option value="F" selected="selected">Female</option>';
                break;
            }
        ?>
</select>    
        
        
                    </div>

    <div class="row">
        <label for="User_birth_date" class="required">Birth Date <span class="required">*</span></label>        <input id="User_birth_date" name="User[birth_date]" type="text" class="hasDatepicker" value="<?php echo $birth_date; ?>">                    </div>

    <div class="row">
        <label for="User_email" class="required">Email <span class="required">*</span></label>        <input size="50" maxlength="50" name="User[email]" id="User_email" type="text" value="<?php echo $email; ?>">            </div>

    <div class="row">
        <label for="User_login" class="required">Login <span class="required">*</span></label>        <input size="40" maxlength="40" name="User[login]" id="User_login" type="text" value="<?php echo $login; ?>">            </div>

    <div class="row">
        <label for="User_password" class="required">Password <span class="required">*</span></label>        <input size="50" maxlength="50" name="User[password]" id="User_password" type="password">            </div>

    <div class="row buttons">
        <input type="submit" name="yt0" value="Update">    </div>

    </form>
</div><!-- form -->	</div>
    <!-- content -->



</div>
<div class="span-5 last">
	<div id="sidebar">
	<div class="portlet" >
<div class="portlet-decoration">
<div class="portlet-title">Operations</div>
</div>
<div class="portlet-content">
<ul class="operations" >
<li><a href="<?php echo base_url();?>user/display">List User</a></li>
<li><a href="<?php echo base_url();?>user/manage">Manage User</a></li>
</ul></div>
</div>	</div><!-- sidebar -->
</div>
